﻿@extends('Layout/layout')

@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("os").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="/OfficeSupplies"><p>领用信息</p></a></li>
<li><a href="{{ url('/Lzk/Goods/index') }}"><p>商品信息</p></a></li>
<li><a href="{{ url('/Lzk/stock/index') }}"><p>缺货单</p></a></li>


</ul>

</div>
<div class="mian_b">
<div class="mian_b1">
@if(session('role') == 1)
<a href="{{ url('/Lzk/Goods/add') }}" title="添加" ><p class="mian_b1_a1"></p></a>

@endif
<form action="{{url('/department')}}" modth="get">
<p class="mian_b1_sousuo"><input name="name" type="text" value=""></p>
<input type="image" src="/public/images/1.jpg" style="margin:13px;">
</form>

	
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg">
<tr>
<td width="3%" class="mian_b_bg_lm"></td>
<td width="11%" class="mian_b_bg_lm"><span></span>编号</td>
<td width="11%" class="mian_b_bg_lm"><span></span>类别</td>
<td width="13%" class="mian_b_bg_lm"><span></span>单价(/元)</td>
<td width="10%" class="mian_b_bg_lm"><span></span>物品名</td>
<td width="37%" class="mian_b_bg_lm"><span></span>物品数量</td>
<td colspan="2" class="mian_b_bg_lm"><span></span>操作</td>
</tr>

@foreach($goods as $k=>$v)
<tr>
<td><input name="" type="checkbox" value="">&nbsp;</td>
<td>{{$v['GoodsId']}}</td>
<td>{{$v['GoodsClass']}}</td>
<td>{{$v['GoodsPrice']}}</td>
<td>{{$v['GoodsName']}}</td>
<td>{{$v['GoodsNumber']}}</td>
<td width="8%" class="mian_b_icon_01"><a href="{{ url('/Lzk/Goods/edit',['id'=>$v['id']]) }}">编辑</a></td>
<td width="8%"><a href="{{ url('/Lzk/Goods/del',['id'=>$v['id']]) }}">删除</a></td>
</tr>
@endforeach


</table>

<div style="float:left;" id="fenye">
{!! $goods->appends($info)->render() !!}
</div>

</div>
</div>
</body>

@endsection